package ${projectRootPackage};


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* SpringBoot方式启动类
* Created by kingboy on 2018/7/22.
*/
@SpringBootApplication
@Slf4j
@ComponentScan(basePackages={"${projectRootPackage}"})
@RestController
public class ApplicationBoot {

    @RequestMapping("/")
    public String Hello(){
        return "项目${projectRootPackage}生成成功！";
    }

    public static void main(String[] args) {
        SpringApplication.run(ApplicationBoot.class, args);
        log.info(" Project ${projectRootPackage} Application is start success!");
    }
}
